namespace FaultBackService.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Sensor")]
    public partial class Sensor
    {
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int SensorId { get; set; }

        [Required]
        [StringLength(50)]
        public string SensorZH { get; set; }

        [Required]
        [StringLength(50)]
        public string SensorEN { get; set; }

        public int ComponentId { get; set; }

        [Required]
        [StringLength(50)]
        public string ComponentName { get; set; }

        [StringLength(50)]
        public string Unit { get; set; }

        [StringLength(50)]
        public string SCADA_ColumnName { get; set; }

        public bool IsDone { get; set; }

        public virtual Component Component { get; set; }
    }
}
